#ifndef APPCHOOSER_H
#define APPCHOOSER_H
/*---------------------------------------------------------------------------*/
#include <QWidget>
#include <vector>
/*---------------------------------------------------------------------------*/
using namespace std;
/*---------------------------------------------------------------------------*/
class QListWidget;
class FileNode;
class QLineEdit;
class QListWidgetItem;
/*---------------------------------------------------------------------------*/
class AppChooser : public QWidget
{
	Q_OBJECT

	public:
	
							AppChooser(vector<FileNode*> vfn);
	virtual					~AppChooser();


	private slots:
	
	void					selectedChanged(  );
	void					selectedChanged( QListWidgetItem *item );
	void					textChanged();
	void					openClicked();
	void 					cursorPositionChanged ( int old, int nu );
	
	private:
	
	QListWidget				*list;
	vector<FileNode*> 		v_files;
	QLineEdit				*text;
	QString					oldtext;
	int						oldcurpos;
	
	void					launch();
	
};
/*---------------------------------------------------------------------------*/
#endif
